package org.dtrd.modules.patient.entity.bean.group;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.patient.entity.po.DtrdEntRdGroup;

/**
 * <p>
 * 患者分组
 * </p>
 *
 * @author QR
 * @since 2022-03-03
 */
@Getter
@Setter
@ApiModel(value = "患者分组详情")
public class GroupDetail {

    private Integer dataId;

    private Integer doctorId;

    @ApiModelProperty("分组名称")
    private String groupName;

    @ApiModelProperty("机构编码")
    private String orgCode;

    private String roleCode;



    public GroupDetail parseFromPO(DtrdEntRdGroup po) {
        dataId = po.getDataId();
        doctorId = po.getDoctorId();
        groupName = po.getGroupName();
        orgCode = po.getOrgCode();
        roleCode = po.getRoleCode();
        return this;
    }
}
